# coding=utf-8
# !/usr/bin/python3
import subprocess
subprocess.getoutput("adb forward tcp:27042 tcp:27042")
subprocess.getoutput("adb forward tcp:27043 tcp:27043")
import frida
#获取后台允许的软件
rdev=frida.get_remote_device()
# process=rdev.enumerate_processes()
# for proc in process:
#     print(proc)

#获取前台允许的软件

front_app=rdev.get_frontmost_application()
print(front_app)